package com.itheima.methoddemo;

public class Methoddemo3 {
    public static void main(String[] args) {
        double area1 = getArea(3,4);
        double area2 = getArea(5.8,5);
        if(area1 > area2){
            System.out.println("第一个长方形大");
        }else{
            System.out.println("第二个长方形大");
        }
    }

    public static double getArea(double len,double width){
        double area = len * width;
        return area;
    }
}
